package com.orange.framework.consumer;

import com.orange.common.base.entity.ConsumerDto;
import com.orange.common.base.entity.RequestData;
import com.orange.framework.consumer.annotation.HttpMapping;

import java.util.concurrent.TimeoutException;

public interface Consumer {

    ConsumerDto communicate(HttpMapping mapping, Object serverBody, RequestData<?> requestData, Class returnType) throws TimeoutException;

}
